﻿#include "textgenmodelwidget.h"

#include <QtDebug>

TextGenModelWidget::TextGenModelWidget(QWidget *parent)
    : QWidget(parent)
{
    // 在主窗口中使用
    m_faceCountRadio = new RadioButton(this);
    m_faceCountRadio->setOrientation(Qt::Horizontal); // 或 Qt::Vertical
    m_faceCountRadio->setSpacing(0);
    m_faceCountRadio->addButtons({"选项1", "选项2", "选项3"});
    connect(m_faceCountRadio, &RadioButton::currentIndexChanged, [](int index){
        qDebug() << "当前选中：" << index;
    });
    m_mainVBoxLayout->setSpacing(0);           // 父布局也设为 0
    m_mainVBoxLayout->setContentsMargins(0, 0, 0, 0);
    m_mainVBoxLayout->addWidget(m_faceCountRadio, 0, Qt::AlignHCenter);
}
